package main

import (
	"fmt"
	"go-base-learning/src/14_object_oriented/package/model"
)

func main() {
	encapsulationDemo()
}
func encapsulationDemo() {
	var person = model.NewPerson("阿伟")
	if person.SetAge(50) {
		if person.SetWages(20000) {
			fmt.Printf("%s今年%d了，月薪%0.2f元", person.Name, person.GetAge(), person.GetWages())

		}
	}
}
